package utilities.print.menu.pager;

import utilities.print.log.LogMessage;
import utilities.print.menu.Menu;
import utilities.print.menu.MenuExecute;
import utilities.print.menu.execute.main.DeleteLog;
import utilities.print.menu.execute.main.Login;
import utilities.print.menu.execute.main.Registration;

import java.util.TreeMap;

/**
 * 员工管理系统的主页面
 */
public class MainPager {
    public static void main(String[] args) throws Exception {
        TreeMap<String, MenuExecute> m = new TreeMap<>();
        m.put("注册",new Registration());
        m.put("登录",new Login());
        m.put("用户账号管理",new UserPortalPager());
        m.put("清理日志",new DeleteLog());
        Menu menu = new Menu(m,"员工系统首页");
        menu.runMenu();
    }
}
